/// id : "1840214701407420443"
/// isDel : null
/// createBy : null
/// updateBy : null
/// createTime : null
/// updateTime : null
/// chatId : null
/// type : 1
/// sendUserIdcard : null
/// content : "[{\"placeholder\":\"2\",\"placeholderTwo\":\"\",\"type\":1,\"required\":false,\"textInput\":\"2\",\"textinputplaceholder\":\"\",\"value\":null,\"borderShow\":null}]"
/// typeRelatedId : "1840214700581105746"
/// tssId : "1840214700635631673"
/// readNum : 0
/// finishNum : 1
/// allNum : 2
/// sendUserName : "郭岩"
/// sendUserheadImg : "user/head_1720265592295837764.jpg"
/// submitDate : "2024年09月29日 10:19:09"
/// showType : "right"
/// operateType : ["view"]
/// taskFileName : "rr"
/// taskFileDesc : "2"
/// userSendMap : null

class ChatDto {
  ChatDto({
      String? id, 
      dynamic isDel, 
      dynamic createBy, 
      dynamic updateBy, 
      dynamic createTime, 
      dynamic updateTime, 
      dynamic chatId, 
      num? type, 
      dynamic sendUserIdcard, 
      String? content, 
      String? typeRelatedId, 
      String? tssId, 
      num? readNum, 
      num? finishNum, 
      num? allNum, 
      String? sendUserName, 
      String? sendUserheadImg, 
      String? submitDate, 
      String? showType, 
      List<String>? operateType, 
      String? taskFileName, 
      String? taskFileDesc, 
      dynamic userSendMap,}){
    _id = id;
    _isDel = isDel;
    _createBy = createBy;
    _updateBy = updateBy;
    _createTime = createTime;
    _updateTime = updateTime;
    _chatId = chatId;
    _type = type;
    _sendUserIdcard = sendUserIdcard;
    _content = content;
    _typeRelatedId = typeRelatedId;
    _tssId = tssId;
    _readNum = readNum;
    _finishNum = finishNum;
    _allNum = allNum;
    _sendUserName = sendUserName;
    _sendUserheadImg = sendUserheadImg;
    _submitDate = submitDate;
    _showType = showType;
    _operateType = operateType;
    _taskFileName = taskFileName;
    _taskFileDesc = taskFileDesc;
    _userSendMap = userSendMap;
}

  ChatDto.fromJson(dynamic json) {
    _id = json['id'];
    _isDel = json['isDel'];
    _createBy = json['createBy'];
    _updateBy = json['updateBy'];
    _createTime = json['createTime'];
    _updateTime = json['updateTime'];
    _chatId = json['chatId'];
    _type = json['type'];
    _sendUserIdcard = json['sendUserIdcard'];
    _content = json['content'];
    _typeRelatedId = json['typeRelatedId'];
    _tssId = json['tssId'];
    _readNum = json['readNum'];
    _finishNum = json['finishNum'];
    _allNum = json['allNum'];
    _sendUserName = json['sendUserName'];
    _sendUserheadImg = json['sendUserheadImg'];
    _submitDate = json['submitDate'];
    _showType = json['showType'];
    _operateType = json['operateType'] != null ? json['operateType'].cast<String>() : [];
    _taskFileName = json['taskFileName'];
    _taskFileDesc = json['taskFileDesc'];
    _userSendMap = json['userSendMap'];
  }
  String? _id;
  dynamic _isDel;
  dynamic _createBy;
  dynamic _updateBy;
  dynamic _createTime;
  dynamic _updateTime;
  dynamic _chatId;
  num? _type;
  dynamic _sendUserIdcard;
  String? _content;
  String? _typeRelatedId;
  String? _tssId;
  num? _readNum;
  num? _finishNum;
  num? _allNum;
  String? _sendUserName;
  String? _sendUserheadImg;
  String? _submitDate;
  String? _showType;
  List<String>? _operateType;
  String? _taskFileName;
  String? _taskFileDesc;
  dynamic _userSendMap;
ChatDto copyWith({  String? id,
  dynamic isDel,
  dynamic createBy,
  dynamic updateBy,
  dynamic createTime,
  dynamic updateTime,
  dynamic chatId,
  num? type,
  dynamic sendUserIdcard,
  String? content,
  String? typeRelatedId,
  String? tssId,
  num? readNum,
  num? finishNum,
  num? allNum,
  String? sendUserName,
  String? sendUserheadImg,
  String? submitDate,
  String? showType,
  List<String>? operateType,
  String? taskFileName,
  String? taskFileDesc,
  dynamic userSendMap,
}) => ChatDto(  id: id ?? _id,
  isDel: isDel ?? _isDel,
  createBy: createBy ?? _createBy,
  updateBy: updateBy ?? _updateBy,
  createTime: createTime ?? _createTime,
  updateTime: updateTime ?? _updateTime,
  chatId: chatId ?? _chatId,
  type: type ?? _type,
  sendUserIdcard: sendUserIdcard ?? _sendUserIdcard,
  content: content ?? _content,
  typeRelatedId: typeRelatedId ?? _typeRelatedId,
  tssId: tssId ?? _tssId,
  readNum: readNum ?? _readNum,
  finishNum: finishNum ?? _finishNum,
  allNum: allNum ?? _allNum,
  sendUserName: sendUserName ?? _sendUserName,
  sendUserheadImg: sendUserheadImg ?? _sendUserheadImg,
  submitDate: submitDate ?? _submitDate,
  showType: showType ?? _showType,
  operateType: operateType ?? _operateType,
  taskFileName: taskFileName ?? _taskFileName,
  taskFileDesc: taskFileDesc ?? _taskFileDesc,
  userSendMap: userSendMap ?? _userSendMap,
);
  String? get id => _id;
  dynamic get isDel => _isDel;
  dynamic get createBy => _createBy;
  dynamic get updateBy => _updateBy;
  dynamic get createTime => _createTime;
  dynamic get updateTime => _updateTime;
  dynamic get chatId => _chatId;
  num? get type => _type;
  dynamic get sendUserIdcard => _sendUserIdcard;
  String? get content => _content;
  String? get typeRelatedId => _typeRelatedId;
  String? get tssId => _tssId;
  num? get readNum => _readNum;
  num? get finishNum => _finishNum;
  num? get allNum => _allNum;
  String? get sendUserName => _sendUserName;
  String? get sendUserheadImg => _sendUserheadImg;
  String? get submitDate => _submitDate;
  String? get showType => _showType;
  List<String>? get operateType => _operateType;
  String? get taskFileName => _taskFileName;
  String? get taskFileDesc => _taskFileDesc;
  dynamic get userSendMap => _userSendMap;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['isDel'] = _isDel;
    map['createBy'] = _createBy;
    map['updateBy'] = _updateBy;
    map['createTime'] = _createTime;
    map['updateTime'] = _updateTime;
    map['chatId'] = _chatId;
    map['type'] = _type;
    map['sendUserIdcard'] = _sendUserIdcard;
    map['content'] = _content;
    map['typeRelatedId'] = _typeRelatedId;
    map['tssId'] = _tssId;
    map['readNum'] = _readNum;
    map['finishNum'] = _finishNum;
    map['allNum'] = _allNum;
    map['sendUserName'] = _sendUserName;
    map['sendUserheadImg'] = _sendUserheadImg;
    map['submitDate'] = _submitDate;
    map['showType'] = _showType;
    map['operateType'] = _operateType;
    map['taskFileName'] = _taskFileName;
    map['taskFileDesc'] = _taskFileDesc;
    map['userSendMap'] = _userSendMap;
    return map;
  }

}